home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 088 / catpatch.arc / CATPATCH.DOC < prev   
Encoding:
Text File  |  1987-12-17  |  13.5 KB  |  318 lines

  1.  
  2.  
  3.  
  4.                                  CATPATCH
  5.                                 Version 1.0
  6.                    Written and (C) 1987 Michael Cleverly
  7.                           Acheron! [801] 298-2812
  8.                       RELEASE DATE: December 17, 1987
  9.  
  10.                 "The gateway to a flood of WILDCAT! doors"
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.                              What is CATPATCH
  35.                              ----------------
  36.  
  37.     Catpatch is a set of QuickBasic sub-module's that allow easy writting
  38. of any door.  These routines open and close the COM Ports, monitor carrier,
  39. and recycle to the BBS if it's dropped, as well as all I/O between the door
  40. and the user.  This code is very simmilar to DoorPatch (PCBoard) and
  41. DoorMerge (RBBS).  Almost *any* BASIC game/program that does not use sound
  42. or high resolution graphics could be turned into a door, with minor editing
  43. using these routines!
  44.  
  45.  
  46.                         Why did you write CATPATCH?
  47.                         ---------------------------
  48.  
  49.     I wrote CatPatch for several reasons; The first being I needed a easy
  50. way to print stuff and get back input from the user for the ESP Door.  (My
  51. first and the third ever written for WILDCAT.)  I have loved doors ever
  52. since I have been calling BBS's during the days before I got an IBM
  53. Compatible.  I also wanted WILDCAT to get the recognition it deserves.  In
  54. my opinion WILDCAT is the *best* BBS software avaible, far superior to RBBS
  55. or PCBoard (although it is lacking in two major areas which don't concern
  56. most SysOps's; NetMail and Multi-Nodes).  I didn't want to see WildCat
  57. become dependent soley on PCBoard doors like Collie (aka Phoenix) is. 
  58. Hopefully you SysOp's will write tons of doors to share with us all. 
  59. <grin>
  60.  
  61.  
  62.                          Requirements for CatPatch
  63.                          -------------------------
  64.  
  65.     1.  WILDCAT 1.10  <obviously>
  66.     2.  QuickBasic 3.0+ (These routines only use line numbers for labels,
  67.          so may need editing to work with other Basic compilers.  You will
  68.          have to experiment and see.)
  69.     3.  A little knowledge of BASIC.  (Not alot, just a little.)
  70.     4.  An idea for a door  <obviously>
  71.  
  72.  
  73.                      How to use CatPatch in your doors
  74.                      ---------------------------------
  75.  
  76.     The first thing you need to do is load QuickBasic via:
  77.                         QB /W/X/C:512
  78. This will toggle the 'Error Trapping' and 'Resume' functions as well as
  79. allocating more buffers so we can have the neccessary files open.  Next at
  80. the *very* beginning of your program, include the following statement:
  81.                    '$INCLUDE: 'CATPATCH.BAS'
  82. Then at the *very* bottom of your program, include this statement:
  83.                    '$INCLUDE: 'CATPACH2.BAS'
  84. Then near the top of your program on LINE 9, insert the name of your door
  85. program in the variable DOOR.NAME$, and the command:
  86.                         ON.AT$=TIME$
  87. Then procced to write your door, following is a list of conversions to
  88. commonly used BASIC commands needed to send output to both the console and
  89. the user:
  90.  
  91.  
  92. BASIC COMMAND      CATPATCH Equivalent
  93. --------------------------------------------------------------------------
  94. PRINT              Store your text in the variable LN$ and do a GOSUB
  95.                    OUT.PUT
  96. PRINT ;            (Print with no carriage return)  Store your text in the
  97.                    variable LN$ and set NORET=1 and do a GOSUB OUT.PUT
  98. INPUT              Store any text needed to be printed before the input
  99.                    and do a GOSUB IN.PUT (the text in LN$ will
  100.                    automatically be printed with out a carriage return.)
  101.                    The users input is returned in the variable ARG$
  102. COLOR x,x          The following ANSI colors are avaible to you with
  103.                    CATPATCH:  BLUE, GREEN, CYAN, RED, MAGENTA, YELLOW, and
  104.                    WHITE.  If you wish to use these colors then do a GOSUB
  105.                    color (I.E. GOSUB RED to print in RED, GOSUB BLUE to
  106.                    print in BLUE etc)  The text in LN$ will be printed
  107.                    automatically without a carriage return, allowing you
  108.                    to have more than one color on a line.  When you do
  109.                    a GOSUB whatevercolor the text is printed in Graphics
  110.                    mode to the local screen, and in ANSI *only* if the
  111.                    user has ANSI graphics ON in WILDCAT.  Since no carriage
  112.                    return is sent if you are done, you will need to do a 
  113.                    GOSUB OUT.PUT with nothing in it to advance down to the
  114.                    next line.
  115. CLS                Set LN$=CHR$(12), after doing this do a GOSUB LNE25 to
  116.                    establish the bar on the bottom of the screen so the
  117.                    SysOp knows who is in the door.
  118. BEEP               **PLEASE DON'T WAKE UP THE SYSOP!**  If you need to send
  119.                    a bell, or other code that might 'annoy' the SysOp     
  120.                    (especially at night) put it in the variable OUT$, this
  121.                    is sent *only* to the remote user and not the console.
  122.                    (I.E. for a bell do a OUT$=CHR$(7) and then a GOSUB
  123.                    OUT.PUT)
  124.  
  125.  
  126.                   Variables avaible for your manipulation
  127.                   ---------------------------------------
  128.  
  129. AUTHOR.NAME$            Your name
  130. AUTHOR.PHONE$           Your BBS's Phone Number
  131. AUTHOR.BBS$             Your BBS's Name
  132. AUTHOR.BAUD$            The baud rates you support
  133.     -- This information will be displayed as a short BBS ad, along with
  134.        mine when the SysOp shell's to DOS from within the door program --
  135.  
  136. BBS.NAME$               The name of the BBS the door is being run on
  137. SYSOP.FIRST$            The first name of the System Operator
  138. SYSOP.LAST$             The last name of the System Operator
  139. PARAM$                  The name of the config file passed on the command
  140.                         line when the door was run
  141. FIRST$                  The users's first name
  142. LAST$                   The users's last name
  143. USER.NAME$              The users complete name
  144. WC$(x)                  Where x=a number from 1-28 which corresponds with
  145.                         the description of the field with that number as
  146.                         explained on PAGE 226 of the WILDCAT 1.10 Users
  147.                         Manual
  148. DOOR.NAME$              You should set this to the name of your Door
  149.                         Program
  150. LN$                     Put text to be printed in this variable (as
  151.                         described above)
  152. ARG$                    Users input (as described above)
  153. OUT$                    Text sent only to user (as described above)
  154.  
  155.  
  156.                          Configuration File Setup
  157.                          ------------------------
  158.  
  159.     The config file that is passed on the same line when calling your door
  160. program *must* have the following info in it!
  161.          COM2                     <=-- Com Port you use
  162.          Acheron                  <=-- BBS Name
  163.          Michael                  <=-- SysOp's First Name
  164.          Cleverly                 <=-- SysOp's Last Name
  165.          \WILDCAT\CALLINFO.BBS    <=-- Location of the CALLINFO.BBS File
  166. If you need aditional information, you can re-open this file, read through
  167. the first 5 lines, till you come to info specific for your door.  (You
  168. *should* use file number one, and six + for any files you have to open...
  169. two through five are already in use.) For LOCAL MODE Operation:
  170.          COM0                     <=-- Indicates local mode
  171.          Acheron                  <=-- BBS Name
  172.          Michael                  <=-- SysOps First Name
  173.          Cleverly                 <=-- SysOps Last Name
  174.          \WILDCAT\DOORS\LOCAL.BBS <=-- A FAKE copy of CALLINFO, if you
  175.                                        dont have one reffer to page 226
  176.                                        of the WILDCAT 1.10 Manual.
  177. One thing to remember, in the documentation for your door program, be sure
  178. to specify the setup for the .CFG file.
  179.  
  180.  
  181.               Function Keys Active while in the Door Program
  182.               ----------------------------------------------
  183.  
  184.     The following function keys are avaible to the SysOp while a user is in
  185. the door:
  186.  
  187.     [F1] Prints a list of options (same as the one here)
  188.  
  189.     [F2] Shell to DOS -- This will invoke a 2nd command proccessor
  190.          ** WARNING ** - IF CTTY has been redirected to COM2 or GATE2
  191.          etc and NOT the Console (which is default) then the user will
  192.          be able to see what you do, and execute their own DOS commands,
  193.          Which could be fatal.  This is *not* a problem if your LIVE.BAT
  194.          file does not redirect the output.  Also you *MUST* be back
  195.          in the same directory as the door when you 'EXIT' or the door
  196.          could spit out an error on the next file accessing attempt.
  197.  
  198.     [F8] Force User Off  -- This will prompt you for how many minutes
  199.          until the user is sent back to WILDCAT, if you want to boot
  200.          him off immediatly then set this to a very low number, you
  201.          can increase his time in the door this same way.  NOTE: The
  202.          time change will not subtract or add time avaible to the
  203.          user when he returns to WILDCAT.
  204.  
  205.    [F10] Chat with user -- This will allow you to chat with the user,
  206.          its not too fancy, theres a minor problem with the backspace
  207.          on the local screen (but it looks perfect on the remote).
  208.          Time is stopped as far as how much they have left in the door
  209.          but when WILDCAT is recalled all the time (including CHAT time
  210.          in the door) will be subtracted.  Press [ESC] to exit chat.
  211.          (You OR the user can exit chat mode.)
  212.  
  213.  
  214.  
  215.  
  216.  
  217.                            CatPatch Registration
  218.                            ---------------------
  219.  
  220.     Well as the old saying goes, "There's no such thing as a free lunch." 
  221. Not even in writting Door Software.  I am asking a registration fee to help
  222. compensate the time that went into writting these routines, and that
  223. calling long distance.  Your registration will "inspire" me to make changes
  224. to improve this code as time goes by.  Registration IS required if you
  225. write any door programs that utilize this code.  Here's how it works:
  226.  
  227. I ask for an initial $15 dollar registration, regardless.  Then for each
  228. door you write that you charge a registration fee, I ask you to send in a
  229. $5 royalty.  If you write 10 doors and don't charge a dime then I would
  230. excpect a $15 registration, if you wrote 7 doors with no charge and 3 with
  231. a fee, then I would excpect a $15 registration and then a $15 royalty for
  232. the three doors.
  233.  
  234. When you register you get free limited phone support (during certain hours
  235. only) as well as access to a 'door programers conf' for registered users on
  236. my BBS.  Free updates.  Also, if your stuck with a problem, you can upload
  237. your door program and let me have a look at it, etc.
  238.  
  239.                    Mail to:
  240.                    Michael Cleverly
  241.                    158 East 1650 South
  242.                    Bountiful, Utah, 84010
  243.  
  244.  
  245.  
  246.                              Registration Form
  247.                              =================
  248.  
  249. NAME: _______________________
  250.  
  251. Phone: (____) ____-_______      Date #: (____) ____-______
  252.  
  253. BBS Name: _________________     Registration #: 87-_______
  254.  
  255. Address: ____________________   City: ___________________
  256.  
  257. State: _______                  Zip Code: _______-_____
  258.  
  259. *Password: ________________     *B-Date: ___/____/19___
  260.  
  261.          I am complying with the CATPATCH licensse agreement by
  262.          registering my copy of CATPATCH.  Enclosed is the Fifteen
  263.          Dollar payment in US Funds required.
  264.  
  265.  
  266.  
  267.  
  268. * Optional.  Provide this information *ONLY* if you wish to have a pre-
  269. validated account before your first call to our Support BBS.
  270.  
  271.  
  272.  
  273.                              Door Registration
  274.                              -----------------
  275.  
  276. NAME: _______________        CATPATCH Registration Number: ___________
  277.  
  278. DOOR NAMES: __________________________________________________________
  279.  
  280.             __________________________________________________________
  281.  
  282. Total Doors Being Registered: ________
  283.  
  284. Amount Inclosed: $__________
  285.  
  286.  
  287.                    I am remitting $5 in US Funds for each of the above
  288.                    door programs that I created using CATPATCH I/O
  289.                    routines, and am charging a fee for their use by other
  290.                    SysOps.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.                               Technical Help
  298.                               --------------
  299.  
  300.     Technical help is avaible by voice to registered users only.  Upon
  301. registering you will recieve my voice phone number as well as acceptable
  302. hours to call.  Technical help is avaible to registered and non-registered
  303. users alike (but you are going to register... Right?) on my BBS.  Acheron,
  304. 300 - 2400 Baud supported, [801] 298-2812.  I can also be reaches on these
  305. WILDCAT BBS's as well as many others (although here's were I will get your
  306. message the fastest, due to limited funds for long distance calling.)
  307.  
  308.                    * Nick At Nite           [801] 964-1889  300-2400
  309.                    * Well Of Souls          [801] 485-6349  1200-9600
  310.                    * A Million Miles Away   [801] 965-9534  1200-2400
  311.                    
  312.                                   All "PCPursuitable!"
  313.  
  314.  
  315.  
  316.     Well that's about it, if you still don't understand something, contact
  317. me on one of the above BBS's.  I am look forward to seeing your Doors soon!
  318.